#include "decorate.h"

void Student::show()
{
    std::cout << "I am a student." <<std::endl;
}

void Lawyer::show()
{
    std::cout << "I am a lawyer." <<std::endl;
}

void Decorator::show()
{
    if(m_person)
        m_person->show();
}

void TShit::show()
{
    Decorator::show();
    std::cout << "wear TShirt!" << std::endl;
}

void BigTrouser::show()
{
    Decorator::show();
    std::cout << "wear BigTrouser!" << std::endl;
}

void Ballshoes::show()
{
    Decorator::show();
    std::cout << "wear Ballshoes!" << std::endl;
}

void Suit::show()
{
    Decorator::show();
    std::cout << "wear Suit!" << std::endl;
}

void Tie::show()
{
    Decorator::show();
    std::cout << "wear Tie!" << std::endl;
}

void LeatherShoes::show()
{
    Decorator::show();
    std::cout << "wear LeatherShoes!" << std::endl;
}
